a = set("abc")
b = set("cba")
print a == b

a = {ord(c) for c in "spam"}
b = map(ord,"spam")
print b
